#include "StringUtil.h"

std::wstring StringUtil::utf8ToWide(const std::string &utf8Str)
{
    std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
    return converter.from_bytes(utf8Str);
}

std::string StringUtil::wideToUtf8(const std::wstring &wideStr)
{
    std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
    return converter.to_bytes(wideStr);
}